import { ref } from 'vue'

//例如写一个计时器的hook：useCout.js
export default function(){
  const cout=ref(0)
  const increment=()=>cout.value++
  const decrement=()=> cout.value--

  return{
    cout,
    increment,
    decrement
  }
}


//在组件中引入hook

// import useCout from './hooks/useCout'